<?php
if (isset($_GET["id"])) {
    $ids = $_GET["id"];

// GCM Registration ID
    // Store user details in db
    include('config/config.php');
    include_once './db_functions.php';
    // include_once './GCM.php';

    $db = new DB_Functions();
    //$gcm = new GCM();
    // $titik = convert($path);
    $res = $db->deleteIklan($ids);
    header('Location: view_iklan.php');
    // $registatoin_ids = array($gcm_regid);
    // $message = array("product" => "shirt");
    // $result = $gcm->send_notification($registatoin_ids, $message);
    //echo $result;
} else {
    //echo "error";
    // user details missing
}
?> 

